package com.scsj.supermarket.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.scsj.supermarket.R;
import com.scsj.supermarket.bean.CommAlreadyBean;

import java.util.List;

/**
 * 追加评价
 */

public class CommAlreadyAdapter extends BaseQuickAdapter<CommAlreadyBean,BaseViewHolder> {
    public CommAlreadyAdapter(List data) {
        super(R.layout.item_comm_already_layout, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CommAlreadyBean item) {
        helper.setText(R.id.title_tv,item.getName());
        helper.setImageResource(R.id.icon_iv,item.getIcon());
        helper.setText(R.id.integral_tv,item.getIntegral());
    }
}
